@echo off
color 02

:step1
cd ..
set JAR_MANAGE_HOME_TEMP=%cd%

:step2
%windir%\system32\setx.exe JAR_MANAGE_HOME "%JAR_MANAGE_HOME_TEMP%"
%windir%\system32\setx.exe JAR_MANAGE_HOME "%JAR_MANAGE_HOME_TEMP%" /m

:step3
%JAR_MANAGE_HOME_TEMP%\autodepoly-windows\jarmanage.exe stop
%JAR_MANAGE_HOME_TEMP%\autodepoly-windows\jarmanage.exe uninstall

echo UnInstall Success

pause
